function MainAssistant() {

}

MainAssistant.prototype.setup = function () {
    Mojo.Log.info('main assistant setup start');

    this.controller.setupWidget(Mojo.Menu.commandMenu,
        this.attributes = {
            spacerHeight: 0,
            menuClass: 'no-fade'
        },
        this.model = {
            visible: true,
            items: [
                {icon: 'back', command: 'goPrevious'},
                {icon: 'forward', command: 'goNext'}
            ]
    });

    document.getElementById('pronunciation').onclick = function() {
        Mojo.Log.info('pronunciation clicked, render template');
        var content = Mojo.View.render({template: 'Pronunciation/Pronunciation-scene'});
        document.body.innerHTML = content;
    };
};

MainAssistant.prototype.handleCommand = function(event) {
    if(event.type == Mojo.Event.command) {
        switch(event.command) {
            case 'goPrevious':
                Mojo.Log.info('Previous button pressed');
                break;
            case 'goNext':
                Mojo.Log.info('Next button pressed');
                //Scene controller can't push scene
                this.controller.stageController.pushScene('Pronunciation');
                break;
            default:
                Mojo.Log.info('Unknown command');
                break;
        }
    }
};
